//
//  Datai2ViewController.m
//  项目二
//
//  Created by rimi on 16/5/20.
//  Copyright © 2016年 objective. All rights reserved.
//

#import "Datai2ViewController.h"
#import "Singleton.h"
@interface Datai2ViewController ()
@property(nonatomic,strong) UILabel *label;
@end

@implementation Datai2ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title =@"1223";
    [self initInterface];
}

-(void)initInterface{
     _label = [[UILabel alloc]initWithFrame:CRM(80, 300, 100, 40)];
    _label.text = @"接收值";
    _label.backgroundColor = [UIColor purpleColor];
    _label.textAlignment = NSTextAlignmentCenter;
    _label.font = [UIFont systemFontOfSize:18];
    _label.textColor = [UIColor yellowColor];
    [self.view addSubview:_label];
    
    Singleton *singlen = [Singleton sayhello];
    _label.text = singlen.string;
}

@end
